#ifndef STREAMSOURCE_H
#define STREAMSOURCE_H

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>

#include "Sink.h"
#include "Source.h"
#include "StringPiece.h"

const int SIZE = 100;

class StreamSource: public Source<StringPiece> {
    char *m_data;
    char *m_scratch;
public:
    StreamSource();
    void feedTo(Sink<StringPiece>*);
};

#endif // STREAMSOURCE_H
